package project.houseRent.domain;

import project.houseRent.service.HouseService;

/**
 * 房屋实体类信息
 * 房屋编号
 * 房东姓名
 * 房东电话
 * 房屋地址
 * 租金
 * 状态：已出租/未出租
 */
public class House {
    private int id;
    private String name;
    private String phone;
    private String address;
    private double rent;
    private String state;



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getRent() {
        return rent;
    }

    public void setRent(double rent) {
        this.rent = rent;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return id + "\t\t\t" + name + "\t\t" + phone + "\t\t" + address + "\t\t" + rent + "\t\t" + state;
    }
}
